<center>
<h1>ソフトウェア払出登録</h1>
<br>
<font size="3" face="ＭＳ ゴシック" color="red"><%= flash[:notice] %></font>
<br>
<%= form_for(@issue) do |f| %>
<strong>
 <div class = 'field'>
 	<%= f.label '払出番号'%><br>
 	<%= f.text_field :hid %>
 </div>

 <div class = 'field'>
 	<% time = Time.now%>
 	<%= f.label '払出日'%><br>
    <%= f.text_field :day, :value => time.strftime('%m月%d日') %>
 </div>

<div class = 'field'>
	<%= f.label '使用ソフトウェア名'%><br>
 	<%= f.collection_select :useswname, Software.all, :swname, :swname %>
 </div>

 <div class = "field">
 	<%= f.label '使用プロダクトキー' %><br>
 	<%= f.collection_select :usekey, Software.all, :productkey, :productkey %>
 </div>

 <div class = "field">
 	<%= f.label 'インストール端末名' %><br>
 	<%= f.text_field :pcname %>
 </div>

  <div class = "field">
 	<%= f.label '使用者名' %><br>
 	<%= f.collection_select :user, User.all, :username, :username %>
 </div>
<br>
 <div class = "action">
 	<%= f.submit %>
 </div>
</strong>
<% end %>
<br>
 <%= link_to '戻る' , issues_path %>
</center>

